package com.example.pei.ithinklearnt.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import cn.bmob.v3.BmobObject;

/**
 * 个人动态bean
 * Created by Pei on 2017/11/8.
 */

public class AlumniCircle extends BmobObject implements Serializable {
    private String content;    //朋友圈的文字内容
    private Integer photoNumber;  //动态的图片数量
    private Integer state;         //这条动态的状态
    private List<String> photo;
    private Integer praiseNumber;     //点赞个数
    private Integer commentNumber;    //评论个数

    private UserInfo sender;

    private transient Integer isPraise ;    //不上传服务器 当前用户是否点赞了这条动态  ，1点赞 ，0 未点赞

    public AlumniCircle(){}
    public void setSender(UserInfo userInfo){sender=userInfo;}
    public UserInfo getSender(){return sender;}
    public Integer getIsPraise(){return  isPraise==null?0:isPraise;}
    public void setIsPraise(int isPraise){this.isPraise= isPraise;}
    public Integer getPraiseNumber(){return praiseNumber==null?0:praiseNumber;}
    public void setPraiseNumber(int number){this.praiseNumber= number;}
    public Integer getCommentNumber(){return commentNumber==null?0:commentNumber;}
    public void setCommentNumber(int number){this.commentNumber= number;}
    public Integer getPhotoNumber(){return photoNumber==null?0:photoNumber;}
    public void setPhotoNumber(int photoNumber){this.photoNumber= photoNumber;}
    public Integer getState(){return state==null?0:state;}
    public void setState(int state){this.state= state;}
    public void setContent(String content){this.content=content;}
    public String getContent(){return content;}
    public List getphotos(){return photo;}
    public void setPhoto(List<String> urls){
        if(urls==null) return;
        photo=new ArrayList<> (urls);
    }



}

